package com.jic.market.common.exception;

/** 
 * 基类枚举
 *
 * @author guohuayong
 * @date 2020/2/24 13:44
 **/
public interface BaseEnum<T> {

	T getCode();

	String getMessage();

	default boolean compare(T code) {
		return getCode().equals(code);
	}

}
